import React from 'react';
import Zcon from '@cbd/icon';
import { Button } from 'antd';

const CardTitle = (props) => {
  const { total = 0, handleAdd } = props;
  return (
    <div style={{ display: 'flex', alignItems: 'center'}}>
      <span className='list__title'>{`流程委托（${total}）`}</span>
      <Button style={{ marginLeft: '5px'}} className='list__btn' type="primary" size='small' onClick={() => handleAdd(true)}>
        <Zcon type='plus' style={{ fontSize: '14px' }} />
        <span>新增默认委托</span>
      </Button>
      {/* <Button className='list__btn' size='small' style={{marginLeft: '20px'}} onClick={() => handleDelete(true)}>
        删除
      </Button> */}
    </div>
  );
}
export default CardTitle;
